<?php 
namespace frontend\models;
use yii\db\ActiveRecord;

class Company extends ActiveRecord{
    public $qr;
	public function rules(){
		return [
				[['CEmail', 'CPassword', 'qr', 'CTelName', 'CTel','CName','CNo','CLink','CPhone','CScale','CCreatTime','CDesc'], 'required'],
				 //['qr', 'compare', 'compareAttribute'=>'CPassword', 'message' => '两次密码不一致'],
			];
	}
	public function attributeLabels()
    {
        return [
            'CEmail' => '邮箱',
            'CPassword' => '密码',
            'qr' => '确认密码',
            'CTelName' => '企业负责人姓名',
            'CTel' => '企业负责人电话',
        ];
    }
 

}
 ?>